package io.api.modules.login.dao;

import io.admin.common.dao.BaseDao;
import io.api.modules.login.entity.EditionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 版本管理
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-07-08
 */
@Mapper
public interface EditionDao extends BaseDao<EditionEntity> {

    @Select("SELECT te.* FROM tb_edition te WHERE te.type=#{type}  ORDER BY te.number DESC LIMIT 1;")
    EditionEntity selectNewestByType(Integer type);
	
}